<template>
    <div>
        <a-form layout="inline">
            <a-form-item label="电话" class="form-item-len">
                <a-input
                    placeholder="请输入电话"
                    v-model:value="currentRow.fphone"
                />
            </a-form-item>
            <br/>
            <a-form-item label="邮箱" class="form-item-len">
                <a-input
                    placeholder="请输入邮箱"
                    v-model:value="currentRow.femail"
                />
            </a-form-item>
        </a-form>
    </div>
</template>
<script>
import {
    commonUpdateHcyJbxx,
} from '../service/index'
export default {
    components:{

    },
    props:{

    },
    data(){
        return{
            currentRow:{},
        }
    },
    watch:{

    },
    mounted(){
        
    },
    methods:{
        getData(row){
            this.currentRow = row
        },
        handleOk(){
            //console.log('88888888')
            commonUpdateHcyJbxx({
                fphone:this.currentRow.fphone,
                femail:this.currentRow.femail,
                id:this.currentRow.id,
                sqsxid:this.currentRow.sqsxid,
            }).then(res=>{
                if(res.code == 200){
                    this.$message.success(res.message)
                    this.$emit('cancel',false)
                    this.$emit('successChange',true)
                }else{
                    this.$message.warning(res.message)
                }
            })
        }
    }
}
</script>